-- GENERATED SPELL FOR [Skeletal Constructor] --


function spell0_30687(pUnit, Event) --@Bone Armor,n/a--
pUnit:FullCastSpellOnTarget(50324,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30687', 669, 1)
end

function spell1_30687(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30687', 3000, 1)
end

function Sorts_30687(pUnit, Event)
local choix_sorts_30687 = math.random(0, 1)
if choix_sorts_30687 == 0 then
pUnit:RegisterEvent('spell0_30687', 1, 1)
end
if choix_sorts_30687 == 1 then
pUnit:RegisterEvent('spell1_30687', 1, 1)
end
end

function mob30687_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30687', math.random(1500, 3000), 1)
end

function mob30687_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30687_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30687_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30687, 1, 'mob30687_Action')
RegisterUnitEvent(30687, 2, 'mob30687_Leave')
RegisterUnitEvent(30687, 3, 'mob30687_Kill')
RegisterUnitEvent(30687, 4, 'mob30687_Die')
